﻿namespace MexicanControl.model
{
    public class Save
    {
        public class saveDeviceMatter
        {
            public string matterStatusJson { get; set; }
            public string deviceStatusJson { get; set; }
            public string deviceId { get; set; } = IPorPortInfo.Instance.DeviceId.ToString();
        }
        public class CoffeeMatters
        {
            private static CoffeeMatters instance;
            private CoffeeMatters() { }

            public static CoffeeMatters Instance
            {
                get
                {
                    if (instance == null)
                    {
                        instance = new CoffeeMatters();
                    }
                    return instance;
                }
            }

            /// <summary>
            /// 水
            /// </summary>
            public int CoffeeMatter19 { get; set; } = 0;
            /// <summary>
            /// 咖啡豆左
            /// </summary>
            public int CoffeeMatter7 { get; set; } = 0;
            /// <summary>
            /// 咖啡豆右
            /// </summary>
            public int CoffeeMatter8 { get; set; } = 0;
            /// <summary>
            /// 咖啡奶
            /// </summary>
            public int CoffeeMatter9 { get; set; } = 0;
            /// <summary>
            /// 冰
            /// </summary>
            public int CoffeeMatter24 { get; set; } = 0;
            /// <summary>
            /// 8oz纸杯
            /// </summary>
            public int CoffeeMatter2 { get; set; } = 0;
            /// <summary>
            /// 打印机状态
            /// </summary>
            public int CoffeeMatter25 { get; set; } = 0;
            /// <summary>
            /// 12oz纸杯
            /// </summary>
            public int CoffeeMatter3 { get; set; } = 0;
            /// <summary>
            /// 咖啡机故障
            /// </summary>
            public int CoffeeMatter23 { get; set; } = 0;
            /// <summary>
            /// 机器人故障1
            /// </summary>
            public int CoffeeMatter21 { get; set; } = 0;
            /// <summary>
            /// 机器人故障2
            /// </summary>
            public int CoffeeMatter22 { get; set; } = 0;
        }
        public class deviceStatus
        {
            private static deviceStatus instance;
            private deviceStatus() { }

            public static deviceStatus Instance
            {
                get
                {
                    if (instance == null)
                    {
                        instance = new deviceStatus();
                    }
                    return instance;
                }
            }
            public int deviceStatus1 { get; set; } = 1;
            public int deviceStatus2 { get; set; } = 1;
            public int deviceStatus3 { get; set; } = 1;
            public int deviceStatus4 { get; set; } = 1;
            public int lhStatus { get; set; } = 1;
        }
    }
}
